package com.eagleframework.app;

import com.eagle.util.common.SystemUtil;
import com.eagleframework.api.EagleApplication;
import com.eagleframework.api.EagleApplicationRunner;

/**
 * 自动应用
 * 
 * 全自动的SpringBoot应用
 * @author yaojx
 */
@EagleApplication
public class EagleAutoApplication {
    /**
     * 设置应用名称时的Key，设置于环境变量
     */
    private static final String APP_NAME = "appName";
    
    /**
     * 应用启动主方法
     * @param args 
     */
    public static void main(String[] args) {
        EagleApplicationRunner.run(SystemUtil.getEnvProperties(APP_NAME), EagleAutoApplication.class, args);
    }
}
